<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="../lib/jquery.min.js"></script>
    <script>

        // const el = document.createElement('div');
        // el.innerText = 'hello world';

        // 创建
        const el = $('<div class="abc">hello world</div>');

        // 绑定事件
        el.on('click', () => {
            console.log(1);
        });

        // 追加至body
        el.appendTo($('body'));

    </script>
</body>
</html>